package com.shunbo.convenient.service.impl;

import com.shunbo.convenient.dao.OpinionMapper;
import com.shunbo.convenient.service.OpinionService;
import com.shunbo.convenient.vo.Opinion;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author weizhuang
 */

@Service
@Transactional
public class OpinionServiceImpl implements OpinionService {

    @Resource
    private OpinionMapper opinionMapper;

    @Override
    public Integer save(Opinion obj) {
        return opinionMapper.save(obj);
    }

    @Override
    public Integer update(Opinion obj) {
        return opinionMapper.update(obj);
    }

    @Override
    public Integer delete(String obj) {
        return opinionMapper.delete(obj);
    }

    @Override
    public Opinion findById(String obj) {
        return opinionMapper.findById(obj);
    }

    @Override
    public List<Opinion> findAll(Opinion obj) {
        return opinionMapper.findAll(obj);
    }
}
